package com.authine.cloudpivot.web.enums;

import com.fasterxml.jackson.annotation.JsonCreator;

public enum ControlPharmacyEnum {

//    NAME("数据标题","name"),
//    CREATER("创建人","creater"),
//    CREATEDDEPTID("创建人部门","createddeptid"),
//    OWNER("拥有者","owner"),
//    OWNERDEPTID("拥有者部门","ownerdeptid"),
//    MODIFIER("修改人","modifier"),
//    MODIFIEDTIME("修改时间","modifiedtime"),
//    WORKFLOWINSTANCEID("流程实例ID","workflowinstanceid"),
//    SEQUENCENO("单据号","sequenceno"),
//    SEQUENCESTATUS("单据状态","sequencestatus"),
//    OWNERDEPTQUERYCODE("部门查询编码","ownerdeptquerycode"),
//    CREATEDTIME("创建时间","createdtime"),
//    BUYQTY("购买数量(只填数字)","buyqty");
//    DRUGSNAME("药品名称","drugsname");
    NUMBER("序号","number"),
    ID("业务对象ID","id"),
    PHARMACYBUYID("pharmacyBuyId","pharmacybuyid"),
    DRUGSBUYDATE("药品购买时间","drugsbuydate"),
    PROCESSINGSTATE("处理状态","processingstate"),
    PROCESSINGOPINIONS("处理意见","processingopinions"),
    PHARMACYAREA("药店所在区域","pharmacyarea"),
    PHARMACYNAME("药店名","pharmacyname"),
    PERSONNAME("姓名","personname"),
    GENDER("性别","gender"),
    IDCARD("身份证","idcard"),
    MOBILE("电话","mobile"),
    ISJZHK("是否居住在海口市","isjzhk"),
    AREA("所在区","area"),
    STREET("街道乡镇","street"),
    VILLAGEHOTEL("村/社区","villagehotel"),
    HOUSENUMBER("详细地址","housenumber"),
    SHORTTEXT11("辅助字段","shorttext11"),
    FROMPROVINCE("省","fromprovince"),
    FROMCITY("市县","fromcity"),
    FROMSTREET("街道/乡镇","fromstreet"),
    FROMVILLAGEHOTEL("村(社区)","fromvillagehotel"),
    DETAILADDS("户籍详细地址","detailadds"),
    TEMPERATURE("患者体温（℃）","temperature"),
    SFYQJCS("有无疫区旅居史或发热人员接触史","sfyqjcs"),
    PROBLEM1("1.最近14天内是否有以下高危地区的旅居史或居住史","problem1"),
    PHARMACYUSERNAME("药店经办人","pharmacyusername"),
    REMARK("备注","remark");

    private final String chineseName;
    private final String englishName;
    private ControlPharmacyEnum(String chineseName, String englishName) {
        this.chineseName = chineseName;
        this.englishName = englishName;
    }

    @JsonCreator
    public static ControlPharmacyEnum get(String chineseName) {
        ControlPharmacyEnum[] enums = values();
        int length = enums.length;
        for(int i = 0; i < length; ++i) {
            ControlPharmacyEnum controlPharmacyEnum = enums[i];
            if (controlPharmacyEnum.getChineseName().equals(chineseName)) {
                return controlPharmacyEnum;
            }
        }
        return null;
    }

    public String getChineseName() {
        return this.chineseName;
    }

    public String getEnglishName() {
        return this.englishName;
    }
}
